package com.bxx.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bxx.common.dto.CommentDto;
import com.bxx.entity.Comment;
import com.bxx.mapper.CommentMapper;
import com.bxx.service.CommentService;
import org.springframework.stereotype.Service;

@Service
public class CommentServiceImpl extends ServiceImpl<CommentMapper, Comment> implements CommentService {
    @Override
    public Page<CommentDto> getCommentInfo(Page<CommentDto> page, Integer blogId) {
        return page.setRecords(this.baseMapper.getCommentInfo(page, blogId));
    }
}
